package TOOLS.setupTable_plugIn;
import java.net.InetAddress;
import java.net.UnknownHostException;

import javax.swing.JFrame;
import javax.swing.WindowConstants;

import CUSTOMER.c_customer;
import ORDER.c_order;
import PRODUCT.c_part;
import PRODUCT.BIN.c_BIN;
import PRODUCT.PACKAGE.c_package;
import PRODUCT.PANEL.c_panel;
import PRODUCT.REPLACEMENT.c_replacement;
import PRODUCT.STRUCT.c_struct;
import SUPPLYER.c_supplyer;
import TOOLS.SQLtool;

public class test002 {

	public static void main(String[] args) {
		SQLtool sql=new SQLtool();
		String IPaddr="192.168.1.1";
		try {
			InetAddress addr = InetAddress.getLocalHost();
			IPaddr=addr.getHostAddress();
		} catch (UnknownHostException e1) {
			;
		}
		sql.config(IPaddr, "AKS2019", "sa", "123456");
		sql.config("192.168.0.39", "AKS2019", "sa", "abcd1234!");
		try {
			JFrame j=new JFrame();
			j.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
			j.setVisible(true);
			j.setLocation(-800, 0);
			sql.connect();
			
			//TODO
			
			j.dispose();
			System.exit(0);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
